<template>
  <!-----------------------------------------------类型表单列表----------------------------------------->
    <div>
      <div class="secondPage">
        <div class="secondPage-header">
          <button @click="goBack" class="gobackbtn">
            <i class="iconfont icon-arrow-left"></i>
          </button>
          <el-input
            clearable
            placeholder="搜索栏"
            prefix-icon="el-icon-search"
            v-model="input2">
          </el-input>
          <span class="Total-people">合计人</span>
            <el-dropdown trigger="click">
  <span class="el-dropdown-link">
    <i class="iconfont icon-screen"></i>
    <i class="el-icon-arrow-down el-icon--right"></i>
  </span>
              <el-dropdown-menu slot="dropdown" class="dropdown-menu">
                <el-checkbox>狮子头</el-checkbox>
                <el-checkbox>螺蛳粉</el-checkbox>
                <el-checkbox>双皮奶</el-checkbox>
                <el-checkbox>蚵仔煎</el-checkbox>
              </el-dropdown-menu>
            </el-dropdown>
          <!--<i class="iconfont icon-screen"></i>-->
          <!--<i class="el-icon-arrow-down el-icon&#45;&#45;right"></i>-->
        </div>
        <div class="secondPage-content">
          <el-table
            :data="tableData"
            border
            style="width: 100%"
            @cell-click="todetailcheck">
            <el-table-column
              prop="date"
              label="日期"
              width="280">
            </el-table-column>
            <el-table-column
              prop="name"
              label="姓名"
              width="240">
            </el-table-column>
            <el-table-column
              prop="name"
              label="姓名"
              width="260">
            </el-table-column>
            <el-table-column
              prop="name"
              label="姓名"
              width="280">
            </el-table-column>
            <el-table-column
              prop="name"
              label="姓名"
              width="260">
            </el-table-column>
            <el-table-column
              prop="address"
              label="地址">
            </el-table-column>
          </el-table>
        </div>
      </div>
    </div>
</template>

<script>
  import store from '@/store'
    export default {
      name: 'formtypelist',
      data () {
        return {
          input2: '',
          tableData: [{
            date: '2016-05-02',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1518 弄'
          }, {
            date: '2016-05-04',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1517 弄'
          }, {
            date: '2016-05-01',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1519 弄'
          }, {
            date: '2016-05-03',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1516 弄'
          }]
        }
      },
      methods: {
        goBack () {
          store.commit('updateToggleValue', 'formsortlist')
        },
        todetailcheck () {
          store.commit('updateToggleValue', 'formdetailcheck')
        }
      }
    }
</script>

<style lang="stylus" rel="stylesheet/stylus" scoped>
  .secondPage
    width 98%
    height 50px
    margin 20px 0 0 1%
  .secondPage-header{
    width 100%
    height 50px
  }
    .el-dropdown{
      float right
      color #B4BCCC
      margin-right 20px
      background-color white
      border 1px solid #D8DCE5
      border-radius 4px
      padding 5px
    }
      .el-checkbox{
        margin-left 0
      }
      .dropdown-menu{
        width 130px!important
      }
  .gobackbtn{
    width 40px
    height 40px
    border 1px solid  #D8DCE5
    background-color #ffffff
    color #878D99
  }
  .el-input{
    width 200px
    margin-left 20px
  }
  .secondPage-content{
    width 100%
    margin-top 20px
    background-color #016DFB
  }
</style>
